package com.devsoft.foodflip;

import java.util.ArrayList;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class PowerUp{
	private String name;//"Double Pan",""Score Multiplier","Speed boost","Slow time"
	private int pos_x;
	private int pos_y;
	private Bitmap image; 			//used to hold image of food
	private Context context;
	
	public PowerUp(){}
	
	public PowerUp(String name, Bitmap image)//, Bitmap image
	{
		this.name = name;
		this.image = image;
		
	}
	
	
	public PowerUp(Context context)
    {
         this.context = context;
         
    }
	
	
	public String getName()
	{
		return name;
		
	}
	
	
	public int getPositionX()
	{
		return pos_x;
		
	}
	
	
	public int getPositionY()
	{
		return pos_y;
		
	}
	
	public void setPositionX(int pos)
	{
		this.pos_x = pos;
		
	}
	
	
	public void setPositionY(int pos)
	{
		this.pos_y = pos;
		
	}
	
	public Bitmap getImage()
	{
		return image;
		
	}
	
	public ArrayList <PowerUp> generatePowerUps(){
		PowerUp temp = new PowerUp(context);
		
		PowerUp Double_Pan = new PowerUp("Double Pan",BitmapFactory.decodeResource(context.getResources(), R.drawable.power_up_1));
		PowerUp Score_Multiplier = new PowerUp("Score Multiplier",BitmapFactory.decodeResource(context.getResources(), R.drawable.power_up_2));
		PowerUp Speed_Boost = new PowerUp("Speed Boost",BitmapFactory.decodeResource(context.getResources(), R.drawable.power_up_3));
		PowerUp Slow_Time = new PowerUp("Slow Time",BitmapFactory.decodeResource(context.getResources(), R.drawable.power_up_4));
		
		ArrayList <PowerUp> listPowerUps = new ArrayList <PowerUp>();
		
		listPowerUps.add(Double_Pan);
		listPowerUps.add(Score_Multiplier);
		listPowerUps.add(Speed_Boost);
		listPowerUps.add(Slow_Time);
		
		return listPowerUps;
	}
	
}
